import request from '../utils/request.js'

export function createReview(data) {
  return request({
    url: '/api/review/create',
    method: 'POST',
    data
  })
}

export function getCourtReviews(courtId) {
  return request({
    url: `/api/review/court/${courtId}`,
    method: 'GET'
  })
}

export function getMyReviews() {
  return request({
    url: '/api/review/my',
    method: 'GET'
  })
} 